import { request } from '@/utils/request';
/**
 * @description 
 * @returns
 */
export function getAllOrgGroupTypeList() {
  return request({
    url: '/api/orgm/getAllOrgGroupTypeList',
    method: 'get',
  });
}

/**
 * @description 删除表单分类
 * @returns
 */
export function deleteOrgGroupTypeById(data: API.DelOrgGroupTypeParams) {
  return request(
    {
      url: '/api/orgm/deleteOrgGroupTypeById',
      method: 'post',
      data,
    },
    {
      successMsg: '删除成功',
    },
  );
}

/**
 * @description 创建表单分类
 * @returns
 */
export function addOrgGroupType(data: API.AddOrgGroupTypeParams) {
  return request({
    url: '/api/orgm/addOrgGroupType',
    method: 'post',
    data,
  });
}

// 编辑表单分类
export function updateOrgGroupType(data: API.UpdateOrgGroupTypeParams) {
  return request({
    url: '/api/orgm/updateOrgGroupType',
    method: 'post',
    data,
  });
}
